//
//  MovieListView.swift
//  SwiftUi
//
//  Created by xm on 05/09/2025.
//

import SwiftUI

struct AnimeDetailView: View {
    
    let viewModel: AnimeViewModel
    
    init(viewModel: AnimeViewModel) {
        self.viewModel = viewModel
    }
    
    var body: some View {
        Text("Anime:\(viewModel.anime.name)")
    }
}

#Preview {
    let coordinator = AnimesCoordinator()
    let anime = UseCaseData.animes[0]
    AnimeDetailView(viewModel: AnimeViewModel(anime: anime, coordinator: coordinator))
}
